package com.xydtech.ecard.ftp.enums;

/**
 * @Author: liliya
 * @Description:
 * @Date: Created in 2023/8/15 19:25
 * @Modified:
 */

public enum FtpRepricingFrequencyDeadlineTypeEnum {

    REPRICING_FREQUENCY_DEADLINE_TYPE_01("repricing_frequency_type","12","(1,2]"),
    REPRICING_FREQUENCY_DEADLINE_TYPE_02("repricing_frequency_type","12","(2,3]"),
    REPRICING_FREQUENCY_DEADLINE_TYPE_03("repricing_frequency_type","12","(3,5]"),
    REPRICING_FREQUENCY_DEADLINE_TYPE_04("repricing_frequency_type","12","(5,+∞)");

    private String frequencyType;
    private String frequencySubType;
    private String originalDeadlineType;

    FtpRepricingFrequencyDeadlineTypeEnum(String frequencyType, String frequencySubType, String originalDeadlineType) {
        this.frequencyType = frequencyType;
        this.frequencySubType = frequencySubType;
        this.originalDeadlineType = originalDeadlineType;
    }

    public String getFrequencyType() {
        return frequencyType;
    }

    public String getFrequencySubType() {
        return frequencySubType;
    }

    public String getOriginalDeadlineType() {
        return originalDeadlineType;
    }

    public static FtpRepricingFrequencyDeadlineTypeEnum values(String originalDeadlineType){
        for(FtpRepricingFrequencyDeadlineTypeEnum enums : FtpRepricingFrequencyDeadlineTypeEnum.values()){
            if(enums.getOriginalDeadlineType().equals(originalDeadlineType)){
                return enums;
            }
        }
        return null;
    }


}
